package com.lpit.controller;

import com.lpit.pojo.Article;
import com.lpit.result.ResponseResult;
import com.lpit.service.IssueArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 石智星
 * @version 1.0
 * @date 2023/7/6 9:32
 */
@RestController
@RequestMapping("/issue/article")
public class IssueArticleController {
    @Autowired
    private IssueArticleService issueArticleService;

    @PostMapping
    public ResponseResult add(@RequestBody Article article){
        return issueArticleService.add(article);
    }

}
